﻿using System;
using System.Collections.Generic;
using API.Attributes;
using Framework.Entities;

namespace RealDataReceiver.Entities
{
    [RestService("/api/monitor/alarms")]
    public class AlarmReceiverRequest : GeneralRequest
    {
        public string module { get; set; }
        public List<AlarmRawData> data { get; set; }
    }

    public class AlarmRawData
    {
        public string alarmId { get; set; }
        public string deviceId { get; set; }
        public string alarmType { get; set; }
        public string level { get; set; }
        public string description { get; set; }
        public DateTime time { get; set; }
        public string devIp { get; set; }
    }
}
